#ifndef PLAYPAUSEBUTTON_H
#define PLAYPAUSEBUTTON_H

#include <QPushButton>

class PlayPauseButton : public QPushButton {
Q_OBJECT;
public:
	PlayPauseButton(QWidget* parent = 0);
	bool isShowingPlay() { return showingPlay; }
public slots:
	void onBuffering(int percent);
private slots:
	void onButtonClicked(bool);
signals:
	void play();
	void pause();
private:
	QIcon playIcon, pauseIcon, bufferingIcon;
	bool showingPlay;
};

#endif
